home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 44 / PC Actual CD 44.iso / Linux / Cygwin / full.exe / Disk1 / data1.cab / Tools / H-i586-cygwin32 / i586-cygwin32 / include / sys / time.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-04  |  1.1 KB  |  51 lines

  1. /* time.h -- An implementation of the standard Unix <sys/time.h> file.
  2.    Written by Geoffrey Noer <noer@cygnus.com>
  3.    Public domain; no rights reserved. */
  4.  
  5. #ifndef _SYS_TIME_H_
  6. #define _SYS_TIME_H_
  7.  
  8. #include <_ansi.h>
  9.  
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13.  
  14. #ifndef _GNU_H_WINDOWS32_SOCKETS
  15. struct timeval {
  16.   long tv_sec;
  17.   long tv_usec;
  18. };
  19.  
  20. struct timezone {
  21.   int tz_minuteswest;
  22.   int tz_dsttime;
  23. };
  24.  
  25. #ifdef __CYGWIN32__
  26. #include <sys/select.h>
  27. #endif /* __CYGWIN32__ */
  28.  
  29. #endif /* _GNU_H_WINDOWS32_SOCKETS */
  30.  
  31. #define ITIMER_REAL     0
  32. #define ITIMER_VIRTUAL  1
  33. #define ITIMER_PROF     2
  34.  
  35. struct  itimerval {
  36.   struct  timeval it_interval;
  37.   struct  timeval it_value;
  38. };
  39.  
  40. int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__z));
  41. int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *));
  42. int _EXFUN(utimes, (const char *__path, struct timeval *__tvp));
  43. int _EXFUN(getitimer, (int __which, struct itimerval *__value));
  44. int _EXFUN(setitimer, (int __which, const struct itimerval *__value,
  45.                     struct itimerval *__ovalue));
  46.  
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif /* _SYS_TIME_H_ */
  51.